<template>
  <div>
    <h1>about</h1>
    <h1>about</h1>
    <h1>about</h1>
    <h1>about</h1>
    <h1>about</h1>
    <h1>about</h1>
    <h1 @click="toHome">homehomehomehome</h1>
    {{ professionList }}
  </div>
</template>

<script>
import { mapGetters } from "vuex";
export default {
  name: "Home",
  computed: {
    ...mapGetters([
      "professionList", // 从getter.js中获取下拉选择框的缓存， 可以减少请求
    ]),
  },
  methods: {
    toHome() {
      this.$router.push({ path: "/home" });
    },
  },
};
</script>
